import { postRequest, getRequest, deleteRequest } from '/@/lib/axios';

// 查询参赛车辆列表
export function listRaceVihicle(query) {
  return getRequest('/vehicleSys/raceVihicle/list', query)
}

// 查询参赛车辆详细
export function getRaceVihicle(id) {
  return getRequest(`/vehicleSys/raceVihicle/${id}`)
}

// 新增参赛车辆
export function addRaceVihicle(data) {
  return postRequest('/vehicleSys/raceVihicle', data)
}

// 修改参赛车辆
export function updateRaceVihicle(data) {
  return postRequest('/vehicleSys/raceVihicle', data)
}

// 删除参赛车辆
export function delRaceVihicle(id) {
  return deleteRequest(`/vehicleSys/raceVihicle/${id}`)
}

// 获取所有设备
export function listAllshebei() {
  return getRequest('/DeviceSys/deviceInfo/listAllshebei')
}
